//
//  StrDetailTableViewCell.m
//  TeamProject_Travel
//
//  Created by lanou3g on 16/4/5.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "StrDetailTableViewCell.h"

@implementation StrDetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self initLayout];
    }
    return self;
}

- (void)initLayout{
    self.titlelabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 5, [UIScreen mainScreen].bounds.size.width - 20, 40)];
    [self.titlelabel setFont:[UIFont fontWithName:@"Helvetica-Bold" size:18]];
    [self.contentView addSubview:self.titlelabel];
    
    self.descriptionlabel = [[UILabel alloc]initWithFrame:CGRectMake(10, CGRectGetMaxY(self.titlelabel.frame), [UIScreen mainScreen].bounds.size.width - 20, 100)];
    self.descriptionlabel.numberOfLines = 0;
    self.descriptionlabel.font = [UIFont systemFontOfSize:15];
    [self.contentView addSubview:self.descriptionlabel];
    
    self.imageScrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(5, CGRectGetMaxY(self.descriptionlabel.frame), [UIScreen mainScreen].bounds.size.width - 10, 150)];
    self.imageScrollView.bounces = NO;
//    self.imageScrollView.pagingEnabled = YES;
    self.imageScrollView.showsHorizontalScrollIndicator = NO;
    self.imageScrollView.showsVerticalScrollIndicator = NO;
    [self.contentView addSubview:self.imageScrollView];
    
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
